package com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm;

import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/***
 * 出差申请管理
 */
public class BusinessTravel extends BootstrapSearchBean implements Serializable {

    /**
     * 状态 已提交
     */
    public static short _STATUS_SUBMIT = 1;

    /**
     * 状态 未提交
     */
    public static short _STATUS_NO_SUBMINT = 0;

    private String businessTravelId;
    // 申请操作员
    private String operatorId;
    // 姓名
    private String name;
    // 出差事由
    private String reason;
    // 出差开始时间
    private String startTimeStr;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//存日期时使用
    private Date startTime;
    // 出差截止时间
    private String endTimeStr;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//存日期时使用
    private Date endTime;
    // 出发地点
    private String startplatz;
    // 目的地
    private String place;
    // 状态 1:提交 2:审核通过 3 驳回
    private Short status;
    // 审批人
    private String modifierId;
    // 审批时间
    private Date modifyTime;
    // 审批意见
    private String comments;
    // 申请人姓名
    private String operatorName;
    // 所属组织
    private String orgName;

    // 流程实列id
    private String piPiid;
    private TaskLinkIam taskLinkIam;
    // 0正常 1删除
    private Integer deleteFlag;
    // 处理人
    private String approver;
    private String approveId;

    private String nodeName;
    private String approveIds;
    private String taskId;

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getApproveIds() {
        return approveIds;
    }

    public void setApproveIds(String approveIds) {
        this.approveIds = approveIds;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getBusinessTravelId() {
        return businessTravelId;
    }

    public void setBusinessTravelId(String businessTravelId) {
        this.businessTravelId = businessTravelId == null ? null : businessTravelId.trim();
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place == null ? null : place.trim();
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId == null ? null : modifierId.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments == null ? null : comments.trim();
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getPiPiid() {
        return piPiid;
    }

    public void setPiPiid(String piPiid) {
        this.piPiid = piPiid;
    }

    public TaskLinkIam getTaskLinkIam() {
        return taskLinkIam;
    }

    public void setTaskLinkIam(TaskLinkIam taskLinkIam) {
        this.taskLinkIam = taskLinkIam;
    }

    public String getStartTimeStr() {
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public String getStartplatz() {
        return startplatz;
    }

    public void setStartplatz(String startplatz) {
        this.startplatz = startplatz;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public String getApproveId() {
        return approveId;
    }

    public void setApproveId(String approveId) {
        this.approveId = approveId;
    }
}